<div id="mainContent">
	<h2>
		<?= $user->company_name ?> - Личный кабинет
	</h2>
	<div class="entitiesForm">
		<form action="<?= URL::site('entities/edit') ?>" method="post">
			<table width="100%" cellspacing="5" cellpadding="5">
				<tr>
					<td width="20%" <?= (!empty($errors['responsiblePerson'])) ? 'style="color: red"' : '' ?>>Ответственное лицо</td>
					<td><input type="text" name="responsiblePerson" class="searchInput" style="position: relative" value="<?= $user->responsible_person ?>" /></td>
				</tr>
				<tr>
					<td <?= (!empty($errors['companyName'])) ? 'style="color: red"' : '' ?>>Название компании</td>
					<td><input type="text" name="companyName" class="searchInput" style="position: relative" value="<?= $user->company_name ?>" /></td>
				</tr>
				<tr>
					<td <?= (!empty($errors['phone'])) ? 'style="color: red"' : '' ?>>Телефон</td>
					<td><input type="text" name="phone" class="searchInput" style="position: relative" value="<?= $user->phone ?>" /></td>
				</tr>
				<tr>
					<td <?= (!empty($errors['password'])) ? 'style="color: red"' : '' ?>>Пароль</td>
					<td><input type="password" name="password" class="searchInput" style="position: relative" value="" /> - оставьте пустым если не хотите менять</td>
				</tr>
				<tr>
					<td <?= (!empty($errors['passwordRepeat'])) ? 'style="color: red"' : '' ?>>Повтор пароля</td>
					<td><input type="password" name="passwordRepeat" class="searchInput" style="position: relative" value="" /></td>
				</tr>
				<tr>
					<td></td>
					<td>
						<input type="submit" value="Сохранить" class="blueButton" />
					</td>
				</tr>		
			</table>
		</form>
	</div>
</div>